﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace LS.Models
{
   
    public class CardContext : DbContext
    {
        public CardContext()
            : base("DefaultConnection")
        {

        }
        public CardContext(string connectionString)
            :base(connectionString)
        {

        }

        public DbSet<Card> Cards { get; set; }
    }

    [Table("Card")]
    public class Card
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        public string SeiralNumber { get; set; }

        public DateTime UpdateDate { get; set; }

        
    }

    public class CardModel
    {

    }
}